﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using TuyenSinh.DAL;

namespace TuyenSinh.BLL
{
    public class BMajor
    {
        public DataTable GetSesion()
        {
            return new DAMajor().GetSesion().Tables[0];
        }

        public DataTable GetField()
        {
            return new DAMajor().GetField().Tables[0];
        }

        public bool InsertMajor(string name, string desc, int sessionId, int schoolId, int iGroupMajorId, int isActive, int isDelete)
        {
            return new DAMajor().InsertMajor(name, desc, sessionId, schoolId, iGroupMajorId, isActive, isDelete);
        }

        public bool InsertMajorDetail(int iSchoolId, int iMajorId, int iNumRegister, int iTarget, float iScore, int iYear, float fNumCompetitor)
        {
            return new DAMajor().InsertMajorDetail(iSchoolId, iMajorId, iNumRegister, iTarget,iScore,iYear,fNumCompetitor );
        }

        public DataTable GetLastMajor()
        {
            return new DAMajor().GetLastMajor().Tables[0];
        }

        public DataTable GetGroupMajor(int id, string sName)
        {
            return new DAMajor().GetGroupMajor(id, sName).Tables[0];
        }
    }
}
